//
//  CampusListItemTypeCell.m
//  ShowYork
//
//  Created by hxh on 2021/3/25.
//  Copyright © 2021 hxh. All rights reserved.
//

#import "CampusListItemTypeCell.h"
@interface CampusListItemTypeCell ()
@property (nonatomic,strong)UILabel *titleLb;
@property (nonatomic,strong)UIView *coverView;
@end

@implementation CampusListItemTypeCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.coverView = [[UIView alloc]init];
        self.coverView.layer.cornerRadius = 4;
        self.coverView.layer.masksToBounds = YES;
        self.coverView.backgroundColor = RGBA(240, 240, 240, 1);
        [self.contentView addSubview:self.coverView];
        [self.coverView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.left.right.bottom.equalTo(self.contentView);
        }];
        self.titleLb = [[UILabel alloc]init];
        self.titleLb.textColor = C153;
        self.titleLb.font = font(10);
        [self.contentView addSubview:self.titleLb];
        [self.titleLb mas_makeConstraints:^(MASConstraintMaker *make) {
            make.center.equalTo(self.contentView);
        }];
    }
    return self;
}
- (void)setItemType:(NSString *)itemType{
    self.titleLb.text = itemType;
}

@end
